package sale.wxb.loveshopping.scheduled;

import lombok.AllArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import sale.wxb.loveshopping.service.IRelationResourceService;

/**
 * 计划清除无用资源
 */
@Component
@AllArgsConstructor
public class ClearResourceTask {
    private final IRelationResourceService resourceService;

    /**
     * 每天凌晨1点执行一次清除任务
     */
    @Scheduled(cron = "0 0 1 * * ?")
    private void clearTask() {
        // TODO 调用服务清理无用文件
    }
}
